package week7;

import java.util.ArrayList;

public class MonetaryCoin extends Coin {
    ArrayList<Integer> list = new ArrayList<Integer>();

    public MonetaryCoin(int n){
        super(n);
        list.add(value);
    }

    public void addCoin(int n){
        Coin a = new Coin(n);
        value = n;
        list.add(value);
    }

    public int getCoin(int n){
        return list.get(n);
    }

    public String getList(){
        return String.valueOf(list);
    }
}
